package com.nowcoder;

import java.util.Arrays;
import java.util.Scanner;

public class RandomNum {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()) {
            int n = scanner.nextInt();
            Arrays.fill(arr,0);
            for (int i = 0; i < n; i++) {
                arr[scanner.nextInt()]++;
            }
            for (int i = 1; i < MAX_N; i++) {
                if(arr[i] > 0) {
                    System.out.println(i);
                }
            }
        }
    }

    private static final int MAX_N = 1001;

    private static int[] arr = new int[MAX_N];
}
